<?php

namespace App\Service\UserCenter\v1_0_8;

use App\Model\UserProfilePersonal;
use App\Model\WithdrawAccountLog;
use App\Service\BaseService;

/**
 * 解绑提现收款账号
 */
class WithdrawUnbindService extends BaseService
{
    public function handle()
    {
        $userId = $this->getUserId();
        //解绑账号资料
        UserProfilePersonal::clearAccount($userId);
        //添加日志
        WithdrawAccountLog::addRecord($userId, 0);
        $ret = ['result' => 1];
        log_user_result($userId, $ret);
        return $ret;
    }
}
